package com.VolunteerPlatform.Service.AdminService.impl;

import com.VolunteerPlatform.Dao.AdminIdentityDao;
import com.VolunteerPlatform.Entity.AdminIdentity;
import com.VolunteerPlatform.Service.AdminService.AdminIdentityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.method.P;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by DoveXL on 2018/12/4.
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class AdminIdentityServiceImpl implements AdminIdentityService{

    @Autowired
    private AdminIdentityDao adminIdentityDao;
    public List<AdminIdentity> getIdentityInfoService(String AdminID, String AdminStatus, int Page, int PageList)
    {
        System.out.println(AdminID);
        System.out.println(AdminStatus);
        return adminIdentityDao.getIdentityInfo(AdminID,AdminStatus, Page,PageList);
    }
    public int updateIdentityInfoService(String AdminID,String AdminName,String AdminStatus)
    {
        return adminIdentityDao.updateIdentityInfo(AdminID,AdminName,AdminStatus);
    }
    public int insertIdentityInfoService(String AdminID,String AdminName,String AdminStatus)
    {
       return adminIdentityDao.insertIndentityInfo(AdminID,AdminName,AdminStatus);
    }
}
